<script>
import Vue from 'vue';
export default {
	//简单全局变量  =>getApp().globalData.text = 'test'
	globalData: {
		// text: 'text'
		flag: false
	},
	onLaunch: function() {
		console.log('App Launch');
		uni.getSystemInfo({
			success: function(e) {
				Vue.prototype.phoneWidth = e.windowWidth; //手机宽度
				Vue.prototype.statusBarHeight = e.statusBarHeight; //系统顶部状态栏高度
				console.log(e.statusBarHeight);
			}
		});
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import 'uview-ui/index.scss';
@import './static/iconfont-weapp-icon.css';
@import './static/css/basic.css';

.status_bar {
	height: var(--status-bar-height);
	width: 100%;
	background-color: #ffffff;
}

.top_view {
	height: var(--status-bar-height);
	width: 100%;
	position: fixed;
	background-color: #ffffff;
	top: 0;
	z-index: 999;
}
</style>
